class GZoomControl
  include MappingObject
  
  def initialize(visual = {}, options = {}, callbacks = {})
    visual.assert_valid_keys :sColor, :nOpacity, :sBorder
    options.assert_valid_keys :sButtonHTML, :oButtonStartingStyle,
                             :oButtonStyle, :sButtonZoomingHTML,
                             :oButtonZoomingStyle, :nOverlayRemoveMS,
                             :bStickyZoom, :bForceCheckResize
    callbacks.assert_valid_keys :buttonClick, :dragStart, :dragging, :dragEnd 
    @visual = visual
    @options = options
    @callbacks = callbacks
  end
  
  def create
    "new GZoomControl(#{@visual.to_json}, #{@options.to_json}, #{@callbacks.to_json})"
  end
end